package com.smart.parking.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.smart.parking.entity.VehicleEntity;
import com.smart.parking.param.AliPay;
import com.smart.parking.utils.PageUtils;
import com.smart.parking.vo.VehicleVO;


import java.util.Map;

/**
 * 车辆信息表
 *
 * @author ciyun
 * @email ciyun@gmail.com
 * @date 2022-10-30 14:12:10
 */
public interface VehicleService extends IService<VehicleEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 添加车辆信息
     */
    boolean addVehicle(VehicleVO vehicleVO);

    /**
     * 车辆离开
     */
    AliPay endVehicle(VehicleVO vehicleVO);

    /**
     * 删除车辆信息
     */
    boolean delVehicle(String vehiclePlate);

    /**
     * 删除车辆信息
     */
    void manualRelease(Long vehicleId);
    /**
     * 手动删除车辆
     */
    void manualReleases(Long[] vehicleIds);

    /**
     * 查询是否支付
     */
    boolean selectPayment(Long chargeID);

    /**
     * 更新支付信息 更新为支付成功
     */
    void updateChargePlay(Long chargeID);
}

